import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { NgZorroAntdModule } from 'ng-zorro-antd';
import { AppComponent } from './app.component';
import { AppRoutingModule } from './app-routing.module';
import { Test1Component } from './test/test1/test1.component';
import { LoginComponent } from './admin/login/login.component';
import { IndexComponent } from './main/main/index/index.component';
import { Test2Component } from './main/main/test2/test2.component';
import { MyHttpService } from './service/http/my-http.service';
import {httpInterceptorProviders} from './service/http';

@NgModule({
  declarations: [
    AppComponent,
    Test1Component,
    LoginComponent,
    IndexComponent,
    Test2Component
  ],
  imports: [
    BrowserModule,
    FormsModule,
    HttpClientModule,
    BrowserAnimationsModule,
    NgZorroAntdModule.forRoot(),
    AppRoutingModule
  ],
  bootstrap: [AppComponent],
  providers: [MyHttpService, httpInterceptorProviders]
})
export class AppModule { }
